package com.dd.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;

/**
 * 列表页面查询条件基类
 */
@ApiModel("列表页查询条件基础类")
@Data
public class PageParam {


    @ApiModelProperty("每页显示行数")
    private int pageSize = 10;

    @DecimalMin(value="1",message = "页面大于1")
    @ApiModelProperty("当前页码")
    private int pageNum = 1;

}
